package com.asd.system.mapper;

import com.asd.system.entity.Organization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface OrganizationMapper extends BaseMapper<Organization> {



    @Update("update organization set name=#{name} ,note=#{note} where id=#{id}")
    void updateOrgBasicInfo(@Param("id") String id, @Param("name")String name, @Param("note")String note);

    @Update("update organization set admin=#{admin} where id=#{id}")
    void updateAdminById(@Param("id")String id, @Param("admin")String admin);
}
